package com.pocketsweet.ui.uilib.adapter;

import java.util.List;

import android.content.Context;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView;
import android.widget.TextView;

import com.pocketsweet.R;
import com.pocketsweet.model.MLUser;

public class UserInfoAdapter extends BaseListAdapter<MLUser> {
	public UserInfoAdapter(Context ctx) {
		super(ctx);
	}

	public UserInfoAdapter(Context ctx, List<MLUser> datas) {
		super(ctx, datas);
	}

	public View getView(int position, View convertView, ViewGroup parent) {
		ViewHolder viewHolder;
		if (convertView == null) {
			convertView = inflater.inflate(R.layout.item_userinfo, parent,
					false);
			viewHolder = new ViewHolder(convertView);
			convertView.setTag(viewHolder);
		} else {
			viewHolder = (ViewHolder) convertView.getTag();
		}
		return convertView;
	}

	private class ViewHolder implements View.OnClickListener {
		private View parent;

		private ViewHolder(View parent) {
			this.parent = parent;
		}

		@Override
		public void onClick(View v) {
			// TODO Auto-generated method stub

		}
	}
}
